package com.g8.pethospitallearnbackend.service;

import com.g8.pethospitallearnbackend.entity.*;
import org.apache.ibatis.javassist.compiler.ast.StringL;

import java.util.List;

public interface UserService {
    User getUserById(String userId);
    User login(String userNameOrEmail, String password);
    User register(User user);
    String verifyEMail(String email);
    String sendMailCode(String email);
    User modifyEmail(User user);
    User modifyPassword(PasswordModify passwordModify);
    User resetPassword(PasswordReset passwordReset);
    User modifyInfo(User user);
    User modifyAUser(User user);
    User addAUser(User user);
    User modifyPermission(User user);
    boolean isAdmin(String userId);
    List<User> getUserOfARole(Byte role);
    String deleteAUser(String userId);
    String deleteUserInBulk(StringList userIds);
    String modifyPermissionsInBulk(PermissionModifyInBulk perModiInBulk);
}
